#include<stdio.h>
#include<string.h>

enum 
{
    Dev_Zero = -1,
    Success
};

int exitCode = Success;

const char* CodeToErrorString(int code)
{
    switch(code) 
    {
    case Dev_Zero:
        return "Dev zero";
    default:
        return "Success";
    }
}
int Dev(int a, int b)
{
    if(b==0)
    {
      exitCode = Dev_Zero;
      return Dev_Zero; 
    }
    return a/b;
}
int main()
{
    int result = Dev(10, 0);
    if(exitCode == Success)
        printf("result == %d\n", result);
    else printf("Error:%s\n", CodeToErrorString(exitCode));
    return exitCode;
}
